using System;

namespace BuffSystem
{
    [Serializable]
    public class TagSystem
    {
        public BuffTag _buffTag;
        public string _buffKey;//todo: when unregister buff through this tag, get key here
        public int _level;//todo: set a level
        public bool _isActive;
        public TagSystem(BuffTag buffTag)
        {
            _buffTag = buffTag;
            _isActive = true;
        }
        public TagSystem(string buffTag)
        {
            _buffTag = (BuffTag)Enum.Parse(typeof(BuffTag), buffTag);
            _isActive = true;
        }
        public void React(bool condition) { _isActive = condition; }
        public virtual void TagEvent()
        {

        }
    }
}
